<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="../../../js/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="../../../css/footer.css" />
		<link rel="stylesheet" type="text/css" href="css/integrel_state.css" />
		<style type="text/css">
			/*修改底部字体颜色*/
			
			.foot:nth-child(2) {
				color: #e83023;
			}
			p{
				word-wrap:break-word;
			}
		</style>
		<script src="../../../js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="wrap">
			<div id="main">
				<div id="header">
					<a id="headImg" href="javascript:history.go(-1)"><img class="headImg" src="../../../images/12.png" /></a>
					<p id="headTitle">积分说明</p>
				</div>
				<div id="content_line"></div>
				<div id="content">
					<!--内容-->
					<p id="content_title">积分说明</p>
					<p class="content_main"></p>
					<p class="content_time"></p>
				</div>
			</div>
			
		</div>

	</body>
	<script src="../../../js/jquery-2.2.3.min.js"></script>
	<script src="../../../js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	<script src="../../../js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		//调用参数函数
		function GetQueryString(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
			var r = window.location.search.substr(1).match(reg);
			if(r != null) return unescape(r[2]);
			return null;
		}
		//会员id
		var pageSize = 10000;
		$.ajax({
			type: "get",
			url: "http://47.104.13.109/integral-service/tfIntegralDetailList",
			async: true,
			data: {
				memberId:$.cookie("memberId"),
				pageNum: 1,
				pageSize: pageSize
			},
			success: function(data) {
				for (var i = 0;i < data.list.length;i++) {
					if (GetQueryString('itgdId') == data.list[i].itgdId) {
						
					
				
				console.log(data);
				var str1 = data.list[i].itgdRemark +'</p></a></li>';
				var str2 = data.list[i].itgdRemark +'</p></a></li>';
					if (data.list[i].itgdStatus == '1') {
//						console.log(data.list[i].gdStatus)
						str = str2;
						$("#headTitle").html("新增积分");
						$("#content_title").html("新增积分");
					}else{
						str = str1;
						$("#headTitle").html("消费积分");
						$("#content_title").html("消费积分");
					}
				$(".content_main").html(str);
				$(".content_time").html(data.list[i].itgdTime);
				}
				}
			}
		});
		
	</script>
</html>